<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>STAPpp: CNode Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">STAPpp
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">STAPpp is a C++ finite element method (FEM) code whose input/output data files are the same as STAP90.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_c_node-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CNode Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Node class.  
 <a href="class_c_node.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_node_8h_source.html">Node.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afc97f75e8d772edc13070f485e6e72fc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#afc97f75e8d772edc13070f485e6e72fc">CNode</a> (double X=0, double Y=0, double Z=0)</td></tr>
<tr class="memdesc:afc97f75e8d772edc13070f485e6e72fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#afc97f75e8d772edc13070f485e6e72fc">More...</a><br /></td></tr>
<tr class="separator:afc97f75e8d772edc13070f485e6e72fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51f2aa3422b76ddff706ee7180b829ec"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#a51f2aa3422b76ddff706ee7180b829ec">Read</a> (ifstream &amp;Input, unsigned int np)</td></tr>
<tr class="memdesc:a51f2aa3422b76ddff706ee7180b829ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read nodal point data from stream Input.  <a href="#a51f2aa3422b76ddff706ee7180b829ec">More...</a><br /></td></tr>
<tr class="separator:a51f2aa3422b76ddff706ee7180b829ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5a83008d5fedc28d1bf2578ce88a555"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#aa5a83008d5fedc28d1bf2578ce88a555">Write</a> (ofstream &amp;OutputFile, unsigned int np)</td></tr>
<tr class="memdesc:aa5a83008d5fedc28d1bf2578ce88a555"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output nodal point data to stream OutputFile.  <a href="#aa5a83008d5fedc28d1bf2578ce88a555">More...</a><br /></td></tr>
<tr class="separator:aa5a83008d5fedc28d1bf2578ce88a555"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af70d66f293c62430c581f3801ccc6419"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#af70d66f293c62430c581f3801ccc6419">WriteEquationNo</a> (ofstream &amp;OutputFile, unsigned int np)</td></tr>
<tr class="memdesc:af70d66f293c62430c581f3801ccc6419"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output equation numbers of nodal point to stream OutputFile.  <a href="#af70d66f293c62430c581f3801ccc6419">More...</a><br /></td></tr>
<tr class="separator:af70d66f293c62430c581f3801ccc6419"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee903e43b9257b9f01cc9ce91a24c38d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#aee903e43b9257b9f01cc9ce91a24c38d">WriteNodalDisplacement</a> (ofstream &amp;OutputFile, unsigned int np, double *Displacement)</td></tr>
<tr class="memdesc:aee903e43b9257b9f01cc9ce91a24c38d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write nodal displacement.  <a href="#aee903e43b9257b9f01cc9ce91a24c38d">More...</a><br /></td></tr>
<tr class="separator:aee903e43b9257b9f01cc9ce91a24c38d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a1dbb1f602b5f7b10f53be78f622352c3"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#a1dbb1f602b5f7b10f53be78f622352c3">NodeNumber</a></td></tr>
<tr class="memdesc:a1dbb1f602b5f7b10f53be78f622352c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Node numer.  <a href="#a1dbb1f602b5f7b10f53be78f622352c3">More...</a><br /></td></tr>
<tr class="separator:a1dbb1f602b5f7b10f53be78f622352c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1d5faec2d43f36ff7333ee35f4f10ff"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#af1d5faec2d43f36ff7333ee35f4f10ff">XYZ</a> [<a class="el" href="class_c_node.html#a53941a4079946fe66edf66e2bd765d2d">NDF</a>]</td></tr>
<tr class="memdesc:af1d5faec2d43f36ff7333ee35f4f10ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">x, y and z coordinates of the node  <a href="#af1d5faec2d43f36ff7333ee35f4f10ff">More...</a><br /></td></tr>
<tr class="separator:af1d5faec2d43f36ff7333ee35f4f10ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a900aadf95d1351028f91501885f2e9a9"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#a900aadf95d1351028f91501885f2e9a9">bcode</a> [<a class="el" href="class_c_node.html#a53941a4079946fe66edf66e2bd765d2d">NDF</a>]</td></tr>
<tr class="memdesc:a900aadf95d1351028f91501885f2e9a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Boundary code of each degree of freedom of the node.  <a href="#a900aadf95d1351028f91501885f2e9a9">More...</a><br /></td></tr>
<tr class="separator:a900aadf95d1351028f91501885f2e9a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a53941a4079946fe66edf66e2bd765d2d"><td class="memItemLeft" align="right" valign="top">static const unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_node.html#a53941a4079946fe66edf66e2bd765d2d">NDF</a> = 3</td></tr>
<tr class="memdesc:a53941a4079946fe66edf66e2bd765d2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of degrees of freedom per node.  <a href="#a53941a4079946fe66edf66e2bd765d2d">More...</a><br /></td></tr>
<tr class="separator:a53941a4079946fe66edf66e2bd765d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Node class. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="afc97f75e8d772edc13070f485e6e72fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc97f75e8d772edc13070f485e6e72fc">&#9670;&nbsp;</a></span>CNode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CNode::CNode </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>X</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>Y</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>Z</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a51f2aa3422b76ddff706ee7180b829ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51f2aa3422b76ddff706ee7180b829ec">&#9670;&nbsp;</a></span>Read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CNode::Read </td>
          <td>(</td>
          <td class="paramtype">ifstream &amp;&#160;</td>
          <td class="paramname"><em>Input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>np</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read nodal point data from stream Input. </p>

</div>
</div>
<a id="aa5a83008d5fedc28d1bf2578ce88a555"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5a83008d5fedc28d1bf2578ce88a555">&#9670;&nbsp;</a></span>Write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CNode::Write </td>
          <td>(</td>
          <td class="paramtype">ofstream &amp;&#160;</td>
          <td class="paramname"><em>OutputFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>np</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Output nodal point data to stream OutputFile. </p>

</div>
</div>
<a id="af70d66f293c62430c581f3801ccc6419"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af70d66f293c62430c581f3801ccc6419">&#9670;&nbsp;</a></span>WriteEquationNo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CNode::WriteEquationNo </td>
          <td>(</td>
          <td class="paramtype">ofstream &amp;&#160;</td>
          <td class="paramname"><em>OutputFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>np</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Output equation numbers of nodal point to stream OutputFile. </p>

</div>
</div>
<a id="aee903e43b9257b9f01cc9ce91a24c38d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee903e43b9257b9f01cc9ce91a24c38d">&#9670;&nbsp;</a></span>WriteNodalDisplacement()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CNode::WriteNodalDisplacement </td>
          <td>(</td>
          <td class="paramtype">ofstream &amp;&#160;</td>
          <td class="paramname"><em>OutputFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>np</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>Displacement</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write nodal displacement. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a900aadf95d1351028f91501885f2e9a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a900aadf95d1351028f91501885f2e9a9">&#9670;&nbsp;</a></span>bcode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CNode::bcode[<a class="el" href="class_c_node.html#a53941a4079946fe66edf66e2bd765d2d">NDF</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Boundary code of each degree of freedom of the node. </p>
<p>0: The corresponding degree of freedom is active (defined in the global system)</p>
<p>1: The corresponding degree of freedom in nonactive (not defined)</p>
<p>After call Domain::CalculateEquationNumber(), bcode stores the global equation number</p>
<p>corresponding to each degree of freedom of the node </p>

</div>
</div>
<a id="a53941a4079946fe66edf66e2bd765d2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53941a4079946fe66edf66e2bd765d2d">&#9670;&nbsp;</a></span>NDF</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const unsigned int CNode::NDF = 3</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Maximum number of degrees of freedom per node. </p>
<p>For 3D bar and solid elements, NDF = 3. For 3D beam or shell elements, NDF = 5 or 6 </p>

</div>
</div>
<a id="a1dbb1f602b5f7b10f53be78f622352c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1dbb1f602b5f7b10f53be78f622352c3">&#9670;&nbsp;</a></span>NodeNumber</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CNode::NodeNumber</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Node numer. </p>

</div>
</div>
<a id="af1d5faec2d43f36ff7333ee35f4f10ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1d5faec2d43f36ff7333ee35f4f10ff">&#9670;&nbsp;</a></span>XYZ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double CNode::XYZ[<a class="el" href="class_c_node.html#a53941a4079946fe66edf66e2bd765d2d">NDF</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>x, y and z coordinates of the node </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/Users/xzhang/git/FEM-Projects/STAPpp/src/h/<a class="el" href="_node_8h_source.html">Node.h</a></li>
<li>/Users/xzhang/git/FEM-Projects/STAPpp/src/cpp/<a class="el" href="_node_8cpp.html">Node.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
